package com.demo.zhou.sniper.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.demo.zhou.sniper.R;


/**
 * Created by zhou on 2017/6/17.
 */

public class ZhengliActivity extends BaseActivity implements View.OnClickListener {
    private Button zhengli_bt_allqun, zhengli_bt_newqun, zhengli_bt_table, zhengli_bt_return;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setTitle("整理");
        setRightBtnVisible(false);
        zhengli_bt_allqun = (Button) findViewById(R.id.zhengli_bt_allqun);
        zhengli_bt_newqun = (Button) findViewById(R.id.zhengli_bt_newqun);
        zhengli_bt_table = (Button) findViewById(R.id.zhengli_bt_table);
        zhengli_bt_return = (Button) findViewById(R.id.zhengli_bt_return);
        zhengli_bt_allqun.setOnClickListener(this);
        zhengli_bt_newqun.setOnClickListener(this);
        zhengli_bt_table.setOnClickListener(this);
        zhengli_bt_return.setOnClickListener(this);
    }

    @Override
    protected int getContentView() {
        return R.layout.activity_zhengli;
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.zhengli_bt_allqun:
                goAllqun();
                break;
            case R.id.zhengli_bt_newqun:
                goNewqun();
                break;
            case R.id.zhengli_bt_table:
                goTable();
                break;
            case R.id.zhengli_bt_return:
                goReturn();
                break;
            default:
                break;
        }
    }

    public void goAllqun() {
        startActivity(new Intent(ZhengliActivity.this,AllqunActivity.class));
    }

    public void goNewqun() {
        startActivity(new Intent(ZhengliActivity.this,NewqunActivity.class));
    }

    public void goTable() {
        startActivity(new Intent(ZhengliActivity.this,ColorTableActivity.class));
    }

    public void goReturn() {
        finish();
    }
}
